<?php
/* @var $this NewDataController */
/* @var $model NewData */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'new-data-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Question'); ?>
		<?php echo $form->textField($model,'Question',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Question'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Note'); ?>
		<?php echo $form->textArea($model,'Note',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'Note'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Name'); ?>
		<?php echo $form->textField($model,'Name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IP'); ?>
		<?php echo $form->textField($model,'IP',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'IP'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
		<?php echo $form->textField($model,'Email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Reply'); ?>
		<?php echo $form->textField($model,'Reply'); ?>
		<?php echo $form->error($model,'Reply'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ReplyDate'); ?>
		<?php echo $form->textField($model,'ReplyDate',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ReplyDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Date'); ?>
		<?php echo $form->textField($model,'Date'); ?>
		<?php echo $form->error($model,'Date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pageview'); ?>
		<?php echo $form->textField($model,'pageview',array('size'=>5,'maxlength'=>5)); ?>
		<?php echo $form->error($model,'pageview'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->